package cn.hml.org.mapper;

import cn.hml.org.domain.Department;
import cn.hml.org.query.DepartmentQuery;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface DepartmentMapper {
    /**
     * 查询所有
     */
    List<Department> findAll();
    /**
     * 通过id查询
     */
    Department findOne(Long id);
    /**
     * 添加
     */
    void add(Department department);
    /**
     * 删除
     */
    void delete(Long id);
    /**
     * 修改
     */
    void update(Department department);
    /**
     * 分页查询
     */
    List<Department> pageQuery(DepartmentQuery departmentQuery);
    /**
     * 查询总条数
     */
    Long count();
}
